replace wget with curl