don't use function keyword
use curl or wget (whichever is available)