pool.index() knows flags
.