add blocked script, and fix bug in blocked