add schematype flat tag to input files