renaming registrar to device_manager and completeting its functionality