moved data files, fixed code to write data files to KB dirs