initial ios6 compatibility