rework started. implemented get_devices.