save port in env var