better err handle on empty response