separating oauth and getting app running sections