merge two files: main and mappings