add some functions

Signed-off-by: you <ylcaa@foxmail.com>