refactoring http/s requests
Debugging saves