Added more light function and read error tcp