add statFunc callback and excFunc callback

add statFunc callback and excFunc callback