I dont know why I thought this needed Express...
moved core to server.js file