change plugin availability check to getObject