added more logging to investigate errors logged