updated to work with latest changes to rauth