add logging to client
add logging