only do indexing if p+o both exist right now