only use host if there is one