added get device info functionality