cache the host and create env names