add masterSocket support