modified RunSetup to read new metadata format