data loading and merging