modify for iOS7
for v2.0 some func added