removed depreciated function and replaced with a plugin check