connection script changes