using publish for indices