rewriting plugins