Collect .yaml file in blocks and merge