changes to support multiple in-directions. usefully for bundling