add icloud exception handling