fix checkattacker format and some problems in todo.py