moved shared function higher up in the mac manifest