refactor cssplugin for ct to extend