clean up on macos side