fix for controlling single hba and api errors