made the run command call apis directly