fix script breakage