provide a helper to set the commit buffer