cleanup before release