allow optional capture of shell commands