alpha version
got it all working in other projects now, just gotta fix when you run node main.js directly