csv2html v1 refactoring