avoid using subprocesses in jobs segment