updated to capture device reg id