fixed unsuccessful handshake by making err null in json response; no aut...

...hentication or version check though