fix external command invocation