fidex rewrite and added rewrite module