made sure there was final newline in new thread