add some functions

Signed-off-by: Viking Robin <healthlolicon@gmail.com>