fixed to get port from process.env when available