rebuild docs architecture & oauth controller