adding getAll and commitAll