working out the file organization