change some code of JSocket