fixed csv export, lots of post-namespace fixes