handling iOS8 properly