added try/catch to todo-list