added new autobatching