Adapted for imac env