modified server to support multiple recipients