checking file structure on device ready