now supports exceptions on ios
values now correct for ios