fix error reporting
more tests
tuned