use argv[2] as device_name in samples