responding to the xcode 5 changes
fixing some static analysis issues