remove extra >
register thread typefn
define pretty printer and marker for threads