added host code, updated everything