added traceback support to nmr loading code