Parsing yaml file the correct way