added auto-revert