clean up partials ; add publishing functionality