updated onExtError and onSizeError