clean up network some; added header outline for threads