partial revert of commit 7a18d7f. fixed bug in get_tsn (raised warning when out has a length greater 1). Not needed anymore - no tests for cran-version.