first pass of reading data from yaml file
more efficient iteration