some problems with undetected exception