added error reporting to demos