revise thread names and subprocess calls