added possibility to use multiple patterns from command-line