fix checks for multiple api configs to work properly