getting root directory on device ready