improved LP construction, other changes