fix subshell invocation