attempt to get better error reporting