simplify export script.