some clean up before release