check err and tids