mostly finished implementing core of peppersync