fix getenv to use host