more memcache bug fixes