major fixes
still neeed to check for duplicate SVNs
outputs