fixed hash check and socket_methods