modified command method in binary_handshake.rb