make ioutil more generic.