cleanup before starting