added basic oauth functions