fix for mac environment