threads: format headers