overwrite for publish