some improvements to exporter skeleton.