use DEVICE_NAME throughout.