gustafn
committed
on 09 Jul 08
make export more robust