added directory specific cache. and comment