added virtual-host session support