fix it to write to the same folder