remove unused statements
confirm persistent-data as json
prefer bytes between web and hub

todo:
remove websocket
use the constant __debug__