modify sockethandler