prefer port env variable is set