fixed find nearest port issues, issues with component delete