add –-port and --target options

avoid hard coding these