basic error reporting added