subprocess fix