host algo