adding full compatibility for iOS