- improve error reporting