accept multiple targets as input, and process all of them