bugfix exception
copy error reporting methods from biskit