add version
split binaries from osx/ios apps
correct range check on safe ops