changes implementation to use rauth for client