wip: some progress towards basic error reporting