support for state reporting, closes #18