added method to read yml files