changes for iOS build
i wonder why this was needed