fixed subshell command allocation