added auto-commit detector