added more server to client functionality