add attributes to ClassMetadata and file loaders