init repo, and token controller