implemented some of the client side handshake code and added a console command for resending the handshake