error handling. The error in dirs-4 is fairly different now; in dirs-3 and dirs-3a it is the obvious change.