rewritten plugin