cleans up code
adds process.env.port