add hops and data num for statistics
fix complie error
add option of info collection limit