registring devices  (duplicates bug)