adding support for arbitrary branches in vhosts