messing with ioutil for writeing