refactor xls tools