make confirm mode optional