simplify plugin.coffee