minor improvements for ios env