trying to fix plugin instance check