clean up to export