make export work properly