Update to work on apple