some cleanup for macos