add the auto revert mode for auto reload when file was changed by external program