fixed coffee rewriter