added DeviceEnvrionment loookup

@xor-xor @quamilek