add devtype_lookup and devfunc_lookup
a workaround commit