changes to core, implemented websocket client, fixed bug