added alternate, faster export method