add some utils

Signed-off-by: yh <yhchinabest@gmail.com>