added new host code
fixed test