added --product filter, fix bug in string-arrays
file mode fix