rewrite using glplugin, add MerlinGerin