fix source option binding
fix source option binding
add stats into doc object