add hash.c and trace.c