merge by script