refactor vhosts