adding batchpersist to repository debug