added rewrite module to vars