add more endpoint functionality