sg engine: do type check only when sd has been setup