fixed minor issues with the export script