split out api key provider