modify the way socket passed into FileManager but have build error