clean up for publishing