added main method to batch import