accept multiple patterns at once