check key ids when used from api