parameterize server addr/port