added even more debug log to the device api