add hostname support for orchestration script