change the def of DeviceInfo in server and reduce warnings to zero in server