modify virtual host function