added httpendpoint support