fixing HTTP calls