use a Hash instead of a HashRef internally