implement new rewrite flag QSA
temporary omit some warnings