better error reporting on startup