scopi-rewrite