moved rewrite rules to init, removed flush_rewrite_rules