added rewriter, always includes namespace