This won't work well for subcases, since those are stored in nodes subcase0 subcase1 etc. Maybe we should take to skype for a bit just so I have a bit more context—might be a better easy way or might not.

Also can you explain why this has to be both here and in couchexport?