lm data export script