add ios6 support