fixed oauth handling a bit