added parsing of lines with all available patterns