make the BND and non-BND write routine the same
make the BND and non-BND write routine the same

abelhj/svtools,abelhj/svtools,abelhj/svtools,ernfrid/svtools,hall-lab/svtools,hall-lab/svtools,hall-lab/svtools,ernfrid/svtools,abelhj/svtools