updated mac compatibility