added oauth class - needs refactored