add support for api keys on the client