use hashie 3.0 and above.