add option of checking sdid and did