added enable/disable host code