added missing files and use of memcache