merge & compile