added debug: gateways list
--port is really optional
fixed chained hostnames (#7)