cleanup for ios