iOS8 chnages, some optimizations and changes in api