proper segmentation of various states of a plugin