change stream to stats in ppoint
add note
refactor batch setup
refactor batch setup - second part
fix test