roll up metadata into a class