preparing file structure for ripple