moved dup and open to child in execute.