prepare for publishing