return dynamic in retrieving values from a yaml file