changes in HashFactory and MenuItem