added custom allocator to _key_map