deferring the creation of device id to the php