add the host to init and cancel