split up the metadata parser