support multiple documents