changed error handling in find calls, added some logs