Rework merge source and script source