separate format_command and format_command_list in basic_runner.py