adds subprocess logging.