updates community stability and torus to generalize factor handling (and hopefully fix travis CI)