clean up for publish