fixing the yaml file handeling