update for oauth2 authenticiation for the media app
clean some minor things