store uri ports in both string and integer form