using GLOBAL.wssHandler and GLOBAL.dataHandler for now to get things working quicker; will refactor later