added check to use yml file named after hostname