prefer getting port from environment variable