moving export script to automated scripts