replaced wget https fetch with curl