rework seek for sync issue, fix bugs along the way