misc script changes