rebuilt mac script