tweaks to port string