let's move these to `device.js` please