_run_commands needs to be above where it is called