copy the config since we're modifying it
correcting logging of templateName
logging the queryId correctly
renaming cilent, since it's dumb... and we're actually gonna have a client