make extra ports configurable
remove unused body data
fix JS when only one port is specified