add checks for duplicte ts and inflow block items