getting a working r build