added support for batch import