adding checks in ws_comm, added constructor to grunt for OnStart compiling