revert from .to_h to Hash[] for 1.9 compatibility