some problems with nearest line/point -- need to add objects