batch processing api and item tracking api were modified, now both apply a callback function