flow loops