device.rb