new switch to open and close todo files