final sync before api