add iOS8 permissions support