pass the hash class rather than using getattr
2 files changed