add feature detection for undofile