write batch - added version to add and delete