make scan helper deal with empty response