adding auth, midway