automatic increment on publish