Rewriter add global classes