don't use refs in a ref-based type (map)