added support for host domain environment var