1.added threads for disk operation
2.added p2p talk for socket