replacing system_call with run_command