making external command more generic.