disabled main()->_do_rewrite until it is fixed