Implement some yaml-reader function