before doing host