fixed merger script