profile flattener
fix stats for top-n
misc wip