add commit_change_set middleware