small tweak to csv recording