merge and temppath