minor script changes