added mac os changes