have one readmain file for both file/folder