automatic device id registration