put the yaml parsing logic