useful scripts for exporting and cleaning