call export once when finished as opposed to repeatedly