add handlers for api key