added mail export script