add read socket code - hyewon.eum