add logging for http calls