better replies; move websocket creation to module