- add error reporting