added some ios version handling defs