fixed execution of external programs