update metadata builders, extract layersConfig
patch generator wip