add logging infrastructure