added remote broadcast for handshake
added tests