converted option errors to try errors