pass host by reference