merge main file