comments on threading; code that needs to be moved