re-itroduced old version of run-command