handle empty responses