Adding PulishedTaggedQueries
changes to write file