modified plugin checking method