fixed todo bug, registered device, set device settings