custom adapter for vhost