start mac code