add set_device_url method to core.rb