device registration implementation - complete - phase 2