auto maintainance of flow