moving some reporting stuff away from xd