do fmt, add host, port param