fix edge case with zero backends. cleanup debug logs