copied index.js into server.js, changed config