some error when trying read arbi length file over socket. reverting