added oauth token check