add_user utility and websocket tinkering