using subprocesses and a separate logger file