fix hash bug; put tcp request/response to one file