rewrite plugins manager