#45 refactoring tlssv.hs: use function output