error handling corrections, failonerror