use log instead of message box to report error