Updates and fixes for memcache to work