iphone related changes and analytics stuff