tgf export script