broken report code, but almost there