extended rewrite module documentation