added most of the endpoints