implement source merging strategy for pillar