device: make it implement initable