upgrade input to support multiple inputs