using files to store logs instead of separate thread. there was an issue where processes that ended too quickly (before thread started) lost all output causing it to misbehave.