added basic error reporting