update running of the rewrite-hooks