fix parsing multiple lines