updated condVar work, including experimental pure R function