added api structure; added checkauth service