mostly framed out to sync and commit data, now in testing mode