fix for json_memcached_handler to access memcached