simplifying idea merge script