[ENH] add data folder and further writing