(small) update to hme_rewrite for more debugging plots