avi options error handling