fixed export/import stat logic