update add the invoke func for kernel