update merge script for v2