set up directory cache