move export to separate script