added endpoint class