updated xpf to work with iOS
not sure