karma rewrite blog post