doing some cleanup work on metafiles