added virtual hosts getter function