updated enza's merge script