added some semblence of hash support