moved some stuff out of NelsonLabTools