make sure device id and name are initialized to null