implementation of ServerClientHandler