removed some newlines in format_threads()