closer to cross-platform, but R is still a problem