merge findsources and importsources scripts