now working properly for iOS plugins