extend compatibility with the old hash format