fix apple specific things