dumping hash_table to buffer, not completed yet!