fix for using websockets