update some file and add socket fun