logging errors in main thread now