external-command constructor fixed