finish initial pass at binary_handshake.rb