finalize sb_doctor