simplify some of the code in the metainfo class