started to implement status.go
refactoring oauth2
Merge branch 'dev'
refactored to return error