more logging to see where the error is