violent refactoring of hashes to use ordereddicts instead.