fix for working on Mac