naive import of _tsolve