add functions working

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>