simple flow detection working