fixed vhost switch
huge fix in the was options are handeled