working with http as well