update to check api key