added applicationCachesDirectory method