device type and keys