add completion for tm. (most probably this can be done nicer)