added handshake when user script starts