changes to host.c