fixed a lot of nonsense. initial sync goes outward now. first set of basic tests included