change port to int when parsed from environment