add undodir setting