moving plugin to Cog