changes port to env var