work toward better error reporting