baseline resolve function is starting to work.  need to still output data to file