read data from yaml file, if available