changed a dangling console write to an exception, test for empty results