device type parsing