added better check for api key