parse all lines method that integrates with new methods