fix lp and ld parsing
merge