limit publish to one thread at a time