making thread work on Mac