adding endpoint config