prepare publish