add switch for indexed hash store