fixed list_devices