fix fork/exec flow