whitespace cleanup
only run inline code on threads