hacking on localStorage and REST api, should simplifiy socket
hacking on localStorage and REST api, should simplifiy socket