rewrite, glplugin-based