give facets code its own plugin