error reporting

more error reporting