ports listing, fix ports parsing