changed commit to persist in handlers