updated run, build and upload to new cli.
implemented --block option for run.