use NSURLConnectionDelegate
adopt NSURLConnectionDelegate protocol
minor changes