updated functions to manage host routes