sync from log - revised