debugging websocket
fix bugs in old code
fix login
handle login
generate preview data
use flux as dispatcher
not successful