support multiple endpoints