fix error reporting

fixes #18
0.7.7