refactor init_host to allow the compute manager to restart the instances