websocket connection now working
basic functionality done