did the scope thing for the api
Added oauth support