try to fix up for http adapter