new debugging/error reporting