importing functions from tsio