before running the script which includes removing redundant apis