implemented --block option for run.