registerDevice