added persistent HTTP support