merge and build