IN PROGRESS: refactoring batch import task