lots of debugging done, but vectorsim still sucks