add support for ios6