read and print serialized maps/sets