add port management from env variables