batch support added to the backend