added undodir. have to see if it meets my needs