working rs auth