minor fixes mac