fix for Mac OS scheduling