add hashLength option