fixed MAC portability issue, hopefully