add impersonation to client library