prepare for various hashtypes