add device and ostype