use optional dependency injection for api keys handler for glass client