add more option to shmhash