changed make_command back to an output array