replaced to requests from  OS call to curl