export script fixed