fix some pb + add csv treat