using process.env.PORT for port switching on the fly