updates port with env vars