check last package import before running the task again