changes to ClientConnection