defining some endpoints