change file comunication to socket process commu.