fix analyze issues + some iOS8 deprecated issues