v8
fixing a bunch of bugs for v9