moved hash_type in common.h