cleanup valence & begin work on segfault[,]