update samples scripts to use upval

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>