rename sync-socket to socket, write md5 with ReadFile