proper plugin toggling