fixed websocketsink getRanged json
some tweaks to websocket source. there are more issues