add hash length option support