Bug fixes

Handshake string, onconnect fixed