new flow in kf, and refactor dgnss