rewrite BlockStatement in spider