tf import, design matrix fixes