use unique flags for each topic