corrected port and env