make hashes work in root constructor