revamped the import scripts to be more generic