updated after refactoring to mirebalais metadata module