updated with support for ios 7 and arm64!