finished the device apidoc