add register device