make mac version work