calback if errors
smarter logging