snippet demos how to read yaml