changes to make 'node app.js' work