added rules to parse lines