fix require socket