add batch run
check total weight
pass topk to the analyze function
solve the -1 problem.