implemented addlistener and removelistener functions to
mrserverconnection