fix rare corner case
start timestamps at 0
replace add_flow/del_flow with iterators