fixed http call functionality