added some logging so we get a results count