run ext cmd improvment