fix R set, and improve R get so doesnt try twice to get auth right