changed SocketHandler.handleRequests