adding host, port and two subscribe methods