refactor launch logic; set hostname