multiple yaml merge; moved metadata store to a module