added client behaviour
added register methods for clients to server