refine file structure