replaced wget with curl