added support for run command.