added api and ms auth