fixes on http port parsing