add group to rewriter
cache file source and ast to speed up