implemented batching on native targets