add -one_and_done flag