add runInBlockMode