error reporting

wip