first attempt to release; use array instead of hash_map in case of dll exporting