Feature/sync document wait for

bring this repo up to modern times