updates to the package to allow better csv output