make websockets work