changed http adapter to curl