overwrite hostname if alternative supplied