redid how elements were consumed by the plugin

and redid the filter functionality next to some code cleanup